interface ProxyItem {
    key: string;
    target?: string;
}
interface PConfig {
    target: string;
    servers: ProxyItem[];
}
const proxyConf: PConfig = {
    target: 'http://192.168.101.73:9001',
    servers: [
        {
            key: '/permssion'
        },
        {
            key: '/repairorder'
        },
        {
            key: '/device'
        },
        {
            key: '/security/v1.0.0/disposition'
        },
        {
            key: '/smartparksysgeneral'
        },
        {
            key: '/smartparkbasedata'
        },
        {
            key: '/smartparkwhiteblacklist'
        },
        {
            key: '/smartpark-backand'
        },
        {
            key: '/security'
        },
        {
            key: '/notification'
        },
        {
            key: '/smartpark-fire'
        },
        {
            key: '/smartpark-video-patrol'
        }
    ]
};
interface pItem {
    target: string;
    changeOrigin: boolean;
}
const proxy: {
    [key: string]: pItem;
} = {};
proxyConf.servers.forEach((item) => {
    proxy[item.key] = {
        target: item.target || proxyConf.target,
        changeOrigin: true
    };
});
export default proxy;
